@forward './_variables';

/* 全局样式变量 */
$primary-color: #333;
$secondary-color: #666;
$background-color: #f5f5f5;

/* 全局样式 */
:root {
  color-scheme: light dark;
}

page {
  background-color: #000000;
  color: #ffffff;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: $background-color;
  color: $primary-color;
}

.container {
  width: 100%;
  min-height: 100vh;
  padding-bottom: 100rpx;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
  box-sizing: border-box;
}

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100rpx;
  background: #ffffff;
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
  
  .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    image {
      width: 48rpx;
      height: 48rpx;
      margin-bottom: 4rpx;
    }
    
    text {
      font-size: 24rpx;
      color: var(--u-content-color);
      
      &.active {
        color: var(--u-primary);
      }
    }
  }
}

// 通用文本样式
.text-primary {
  color: $primary-color;
}

.text-secondary {
  color: $secondary-color;
}

// 通用按钮样式
.btn {
  display: inline-block;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  
  &.btn-primary {
    background-color: #007bff;
    color: #fff;
  }
  
  &.btn-secondary {
    background-color: #6c757d;
    color: #fff;
  }
}

// 通用边距和间隔
.mt-10 {
  margin-top: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

.ml-10 {
  margin-left: 10px;
}

.mr-10 {
  margin-right: 10px;
}

.p-10 {
  padding: 10px;
} 